home *** CD-ROM | disk | FTP | other *** search
- DBPROCESS *dbproc;
-
- /* put the command into the command buffer */
- dbcmd(dbproc, "select name, id, type from sysobjects");
-
- /* send the command to \*S and begin execution */
- dbsqlexec(dbproc);
-
- /* process the command results */
- dbresults(dbproc);
-
- /* examine the column names */
- printf("first column name is %s\\n", dbcolname(dbproc, 1));
- printf("second column name is %s\\n", dbcolname(dbproc, 2));
- printf("third column name is %s\\n", dbcolname(dbproc, 3));
-